package com.ityu.cloudclientone.feign;

import feign.codec.ErrorDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * author: yu.jl
 * e-mail: bbfx89625@gmail.com
 * time  : 2021/6/25
 * desc  :
 */
@Component
public class FeignConfig {
    @Bean
    public ErrorDecoder errorDecoder(){
        return new FeignException();
    }
}

